package mn.idax.exchange.otc.util;

import org.apache.commons.lang.StringUtils;

/**
 * Create by jack_huang on 2018/10/10
 */
public class NickNameUtils {

    public static String concatNickName(String nickName,String email){
        if (StringUtils.isEmpty(nickName)){
            return email.substring(0, 3).concat("***");
//            return email.substring(0, 3).concat("***").concat(email.substring(email.lastIndexOf("@")));
        }
//        return nickName.substring(0,1).concat("********").concat(nickName.substring(nickName.length()-1,nickName.length()));
        return nickName;
    }
}
